<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>更改设备信息</title>
  <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/modify.js"></script>
 
</head>
<body>
<%
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    String tDate = sdf.format(new Date());

%>

<div class="row">
    <div class="col-12">
        <div id="reform" >



            <nav class="navbar  navbar-light rounded" style="background-color: #1e5379;margin-bottom: 30px;">
                <a class="navbar-brand" href="#" style="color: white;">修改设备</a>
            </nav>
        </div>
    </div>

</div>
<div class="row">
    <div class="col-3"></div>
    <div class="col-6">

        <form id="form">

            <fieldset></fieldset>
            <div class="form-group row">
                <label for="ename" class="">设备名称：</label>
                <div class="col-lg-10">
                    <input type="text" name="ename" class="form-control" id="ename" >
                </div>
            </div>
            <div class="form-group row">
                <label for="eModle" class="row-lg-2 col-form-label">设备型号：</label>
                <div class="col-lg-10">
                    <input type="text" name="eModle" class="form-control" id="eModle" >
                </div>
            </div>
            <div class="form-group row">
                <label for="selnumber" class="row-lg-2 col-form-label">设备编号：</label>
                <div class="col-lg-10">
                    <input type="text" name="selnumber" class="form-control" id="selnumber" >
                </div>
            </div>
            <div class="form-group row">
                <label for="brand" class="row-lg-2 col-form-label">设备品牌：</label>
                <div class="col-lg-10">
                    <input type="text" name="brand" class="form-control" id="brand" >
                </div>
            </div>
            <div class="form-group row">
                <label for="etype" class="row-lg-2 col-form-label">设备类型：</label>
                <div class="col-lg-10">
                    <select class="form-control form-control-lg" name="etype" id="etype">
                        <option>电脑</option>
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label for="mf" class="row-lg-2 col-form-label">产&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;商：</label>
                <div class="col-lg-10">
                    <input type="text" class="form-control" name="mf" id="mf" >
                </div>
            </div>
            <div class="form-group row">
                <label for="num" class="row-lg-2 col-form-label">数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;量：</label>
                <div class="col-lg-10">
                    <input type="text" class="form-control" name="num" id="num"  >
                </div>
            </div>
            <div class="form-group row">
                <label for="time1" class="row-lg-2 col-form-label">出厂日期：</label>
                <div class="col-lg-10">
                    <input type="date" class="form-control" lue="<%=tDate%>"  name="time1" id="time1" >
                </div>
            </div>
            <div class="form-group row">
                <label for="time2" class="row-lg-2 col-form-label">购买时间：</label>
                <div class="col-lg-10">
                    <input type="date" class="form-control" value="<%=tDate%>" name="time2" id="time2">
                </div>
            </div>
            <div class="form-group row">
                <%--                <a href="" type="submit" class="btn btn-danger" onclick="location.assign('${pageContext.request.contextPath}/ep/eList')">查看列表</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
                <button type="submit" onclick="sendData()"  class="btn btn-success" id="submit">修改设备</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <button type="submit" class="btn btn-primary" id="reset">重置</button>
            </div>
        </form>

    </div>
    <div class="col-3"></div>
</div>


<%--
<div id="adde">
    <div class="title">
        <div class="context">修改设备</div>
    </div>
    <div class="subject">

        <div class="assembly">

            <div class="assembly_left">
                <div>
                    <label>设备名称：</label>
                </div>
                <div class="assembly_input">
                    <input type="text" id="ename" class="form-control">
                </div>
            </div>

            <div class="assembly_rigth">
                <div>
                    <label>设备型号：</label>
                </div>
                <div class="assembly_input">
                    <input type="text" id="eModle" class="form-control">
                </div>
            </div>
        </div>

        <div class="assembly_left">
            <div>
                <label>设备编号：</label>
            </div>
            <div class="assembly_input" style="float: left;">
                <select  id="selnumber" class="form-control selInput" >

                </select>
            </div>

        </div>

        <div class="assembly_rigth">

            <div>
                <label>选择类型：</label>
            </div>
            <div class="assembly_input">

                <select  id="etype" class="form-control selInput" >

                </select>

            </div>
        </div>



        <div class="assembly">

            <div class="assembly_left">
                <div>
                    <label>设备品牌：</label>
                </div>
                <div class="assembly_input">
                    <input type="text" id="brand" class="form-control">
                </div>
            </div>

            <div class="assembly_rigth">
                <div>
                    <label>产商：</label>
                </div>
                <div class="assembly_input">
                    <input type="text" id="mf" class="form-control">
                </div>
            </div>

        </div>
        <div class="assembly">
            <div class="assembly_left">
                <div>
                    <label>数量：</label>
                </div>
                <div class="assembly_input">
                    <input type="text" id="num" class="form-control">
                </div>
            </div>

            <div class="assembly_rigth">
                <div>
                    <label>出厂日期：</label>
                </div>
                <div class="assembly_input">
                    <input type="date" id="time1" class="form-control">
                </div>
            </div>

        </div>
        <div class="assembly">
            <div class="assembly_left">
                <div>
                    <label>购买时间：</label>
                </div>
                <div class="assembly_input">
                    <input type="date" id="time2" class="form-control">
                </div>
            </div>

        </div>

    </div>
    <div class="bottom_btn">
        <div class="otBtn">
            <button type="button" class="btn btn-success"  onclick="location.assign('${pageContext.request.contextPath}/ep/eList')">查看列表</button>
            <button type="button" id="submit" class="btn btn-primary">更改设备</button>
            <button type="button" id="reset" class="btn btn-info">重置</button>
        </div>

    </div>


</div>
--%>

</body>

<script type="text/javascript">


   $(function () {
       //加载下拉框，不加载会导致失效
      /*   $('.dropdown-toggle').dropdown(); */
            var prefixPath="${pageContext.request.contextPath}";
            customTips();
            geteName(prefixPath);
            //上部左边显示
            updata(prefixPath);

            getQuery();//更变数据



        $("#reset").click(function () {
            reset();
        });

    });




</script>


</html>
